package net.wang.boot.user.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import net.wang.gmall.domain.UserAddress;
import net.wang.gmall.service.IUserService;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

@Service //dubbo注解暴露服务
@Component //Spring Bean
public class UserService implements IUserService {
    @Override

    public List<UserAddress> getUserAddressList(String userId) {
        UserAddress userAddress = new UserAddress(1, "陕西省西安市", "1a", "雁塔", "12312312312", true);
        UserAddress userAddress2 = new UserAddress(2, "陕西省西安市", "1a", "高新", "12312312312", false);
        return Arrays.asList(userAddress, userAddress2);
    }
}
